import request from "@/utils/request";

export interface statStallQuery extends PageQuery {
  page?: number;
  limit?: number;
  keywords?: string;
  shop_id?: number;
  create_time?: string;
  stall_title?: string;
  type?: string;
}

export interface statStallData {
  cate: Date;
  isFirst: Boolean;
  sameIndex: number;
  amount: number;
  total_price: number;
  express_price: number;
  bag_price: number;
  product_price: number;
  shop_title: string;
}

const baseUri = "/mv1/api/stat/stall";

export function statStallList(query: statStallQuery) {
  return request({
    url: baseUri + "/",
    method: "get",
    params: query,
  });
}
